#-*- Mode:Text; Tab-width:4 -*-
#                                                                          
#                                                                          
#                       RESTRICTED RIGHTS LEGEND                           
#                                                                          
#  Use, duplication, or disclosure by the Government is subject to         
#  restrictions as set forth in subdivision (c)(1)(ii) of the Rights in    
#  Technical Data and Computer Software clause at 252.227-7013.            
#                                                                          
#                     TEXAS INSTRUMENTS INCORPORATED.                      
#                             P.O. BOX 149149                              
#                          AUSTIN, TEXAS 78714-9149                        
#                               MS 2151                                    
#                                                                          
#   Copyright (C) 1987,1988,1989,1990 Texas Instruments Incorporated.            
#   All rights reserved.                                                   
#                                                                          
# Makefile for ToolBox Interface

# Identifiers needed by the maclispm defsystem.

# 11/30/89 sbw: added mxcincludes.
# 12/14/89 sbw: removed -lf option from link command in TBserver
# 03/16/90 sbw: removed -bf option from link command in TBserver
# 04/17/90 sbw: added  -ma _ctype=_CType to link to make it work in mpw 3.0 and 3.1.

TBserver-includes = -i {TBI} -i {libs} -i {driver} -i {mxcincludes} -i {cincludes} -i {utility} -i {sock} -i {nupi} -i {addin-comm}

MacCObj =   {tbi}tbserver.o 
		    {driver}driver.o 
		    {addin-comm}addin-comm.o 
			{bsd}bsd.o 
			{enet}enet.o 
			{nupi}nupi.o 
			{window}window.o 
			{control}control.o 
			{misc}misc.o 
			{utility}utility.o 
			{nfs}nfs.o 
		    {rpc}rpc.o 
		    {sock}sock.o

# All the PASCAL object is in here (NUPI, DISKCMDS, MAKPFILES).  AB 8/22/88
MacPObj = 	{nupi}disk.o 

SysLibs =   "{CLibraries}"CLib881.o 
		    "{Libraries}"Interface.o 
			"{Libraries}"CommToolbox.o 
			"{CLibraries}"CInterface.o 
			"{CLibraries}"CRuntime.o 
			"{CLibraries}"StdCLib.o 
			"{CLibraries}"CSANELib881.o 
			"{CLibraries}"math881.o 
			"{PLibraries}"Paslib.o          # Make sure PASCAL libs LAST for the LINK. 	AB 8/22/88.


TBserver  TBserver.r Traps
	Rez TBserver.r -o TBserver -a -i {RIncludes}
	SetFile -a B TBserver -c TIMX -t APPL		# set the bundle bit  #ab 11/8/88.
	duplicate TbServer {maclispm}TbServer -y

TBserver   #{MacCObj} {SysLibs} {MacPObj}
	link -w  {MacCObj} {SysLibs} {MacPObj} -c TIMX -t APPL -o TBserver -ma _ctype=_CType 
	SetFile -a B TBserver -c TIMX -t APPL		# set the bundle bit  #ab 11/8/88.
	duplicate TbServer {maclispm}TbServer -y

tbserver.o  TBServer.c.o TBServer.a.o TBServer.h conn-mgr.c.o
	Directory {tbi}
	lib -o tbserver.o tbserver.a.o tbserver.c.o conn-mgr.c.o

# Copy the trap table file to the library.
tbServer.o  traps
	duplicate -y traps {mx-lib}traps 

traps  traps.r
	directory {TBI}
	rez traps.r -o traps -a -t OBJ -c MPS
		
conn-mgr.c.o  conn-mgr.c
    c conn-mgr.c {TBServer-includes} {Cflags}

TBserver.c.o  TBserver.c TBServer.h
	c TBServer.c {TBServer-includes} {Cflags}

TBserver.a.o  TBserver.a
	Asm TBserver.a -w
